#include <iostream>
using namespace std;

int main(){
    int num = 100;
    do{
        int gewei = num % 10;
        int shiwei = num / 10 % 10;
        int baiwei = num / 100;
        if (gewei*gewei*gewei + shiwei*shiwei*shiwei + baiwei*baiwei*baiwei == num)
        {
            /* code */
            cout << "水仙花数: " << num << endl;
        }
        num++;
        
    }while(num < 1000);
    return 0;
}